﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MediaPortal.GUI.Library;

namespace MediaPortal.Plugins.Sense
{
    /// <summary>
    /// Wrapper class for MediaPortal logging
    /// </summary>
    public static class Logger
    {
        private static string logPrefix = "MPSense:";

        public static void Info(string format, params object[] args)
        {
            string logText = string.Format("{0} {1}", logPrefix, format);
            Log.Info(logText, args);
        }

        public static void Warn(string format, params object[] args)
        {
            string logText = string.Format("{0} {1}", logPrefix, format);
            Log.Warn(logText, args);
        }

        public static void Debug(string format, params object[] args)
        {
            string logText = string.Format("{0} {1}", logPrefix, format);
            Log.Debug(logText, args);
        }

        public static void Error(string format, params object[] args)
        {
            string logText = string.Format("{0} {1}", logPrefix, format);
            Log.Error(logText, args);
        }
    }
}
